import VueRouter from "vue-router";


const enhance = function(prop){
    const nativeFn = VueRouter.prototype[prop];
    VueRouter.prototype[prop] = function(path,success,error=()=>{}){
        return nativeFn.call(this,path,success,error)
    }
}

export default enhance